package com.jd.user.mapper;

import com.jd.system.domain.Menu;
import com.jd.user.domain.Logininfo;
import com.jd.basic.mapper.BaseMapper;
import com.jd.user.dto.LoginDto;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Greeke
 * @since 2022-06-01
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo loadByAccount(LoginDto loginDto);

    Logininfo loadLogininfoByUserId(Long userId);

    List<String> loadPermissionsByLogininfoId(Long id);

    List<Menu> loadMenusByLogininfoId(Long id);
}
